<?php

include_once '../../library/config.php';
include_once '../../model/articlelistview.php';

$entity = new ArticleListView();
$entity->request();

try {

    if (!$entity->select()->where("id=" . $entity['id'])->get_first_rows()) {
        throw new Exception("117");
    }
} catch (Exception $ex) {
    $entity->rsscode($ex);
}

echo $entity->toJson();
